class Record < ActiveRecord::Base
  belongs_to :job
  
  def start=(start)
    self.start_time = start
    self.start_utc_offset = start.utc_offset
  end
  
  def start
    off = self.start_utc_offset/36
    off_str = off < 0 ? off.to_s : '+'+off.to_s    
    return self.start_time.to_datetime.change(:offset => off_str)
  end

#  def end_time=(end_time)
#    self.end_time = end_time
#    self.end_utc_offset = end_time.utc_offset
#  end
  
#  def end_time
#    off = self.end_utc_offset/36
#    off_str = off < 0 ? off.to_s : '+'+off.to_s    
#    self.end_time.to_datetime.change(:offset => off_str)
#  end


end
